package org.example.yunshu.demos.controller;

import org.example.yunshu.demos.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/message")
@RestController
public class MessageController {
    @Autowired
    private MessageService messageService ;

    @RequestMapping("/getHistoryMessage")
    public Object getHistoryMessage(Integer sessionId){
        return messageService.getHistoryMessage(sessionId) ;
    }



}
